package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电站数据路由配置对象 sys_source_bds_config
 * 
 * @author ruoyi
 * @date 2022-04-21
 */
@AllArgsConstructor
@NoArgsConstructor
public class SysSourceBdsConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 数据源code */
    @Excel(name = "数据源code")
    private String sourceCode;

    /** 电站Id */
    @Excel(name = "电站Id")
    private String bdsId;

    /** 电站Id */
    @Excel(name = "电站Id")
    private String bdsName;

    /** 区域 */
    @Excel(name = "区域")
    private String area;

    /** 创建时间 */

@JSONField(format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30)
    private Date createDate;

    /** 更新时间 */

@JSONField(format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30)
    private Date updateDate;

    /** 状态 */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }
    public void setBdsId(String bdsId) 
    {
        this.bdsId = bdsId;
    }

    public String getBdsId() 
    {
        return bdsId;
    }
    public void setBdsName(String bdsName) 
    {
        this.bdsName = bdsName;
    }

    public String getBdsName() 
    {
        return bdsName;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceCode", getSourceCode())
            .append("bdsId", getBdsId())
            .append("bdsName", getBdsName())
            .append("area", getArea())
            .append("createDate", getCreateDate())
            .append("updateDate", getUpdateDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
